package org.pine.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户通知状态表
 * </p>
 *
 * @author pine
 * @since 2025-04-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("pine_user_notice")
public class UserNotice extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = -3192306980642422462L;

    /**
     * 通知ID
     */
    private Long noticeId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 已读状态:0=未读,1=已读
     */
    private Integer readFlag;

    /**
     * 已读时间
     */
    private LocalDateTime readTime;
}
